package com.yun;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
@EnableSwagger2
@MapperScan("com.yun.mapper")
@EnableCaching
public class RenApplication  extends SpringBootServletInitializer {
	public static void main(String[] args) {
		SpringApplication.run(RenApplication.class, args);
	}
	   @Override
	    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
	        return application.sources(RenApplication.class);
	}
}

